<!doctype html>
<meta charset="utf-8">
<title>.</title>
<meta name="viewport" content="width=device-width, initial-scale=1">

<script>
addEventListener('load', async (event) => {
  const navigationPerformanceEntry = performance.getEntriesByType('navigation')[0]

  await fetch('/tests/postData', {
    method: 'POST',
    headers: {'Content-Type': 'application/json'},
    body: JSON.stringify({
      transferSize: navigationPerformanceEntry.transferSize,
      deliveryType: navigationPerformanceEntry.deliveryType,
    }),
  })

  location.assign('/')
})
</script>
